<?php echo $this->partial('partials/admin.phtml'); ?>
<table>
        <tr>
                <th>Product Name</th>
                <th>Discription</th>
                <th>Price</th>
                <th>Quantity</th>
                <th>Image</th>
        </tr>
<?php

foreach ($this->data as $product) {
?>
        <tr>
                <td><?=$product['name']?></td>
                <td><?=$product['discripion']?></td>
                <td><?=$product['price']?></td>
                <td><?=$product['quantity']?></td>
                <td><img src="<?=$this->baseUrl()?>/product_images/<?=$product['image']?>" width="100" height="100" /></td>
                <td><a href="<?=$this->baseUrl()?>/Admin/productedit/id/<?=$product['id']?>" style="text-decoration: none">Edit</a></td>
                <td><a href="<?=$this->baseUrl()?>/Admin/productdelete/id/<?=$product['id']?>" style="text-decoration: none">Delete</a></td>
        </tr>
<?php
}
?>
</table>
<?php
echo $this->paginationControl($this->data,
        'Sliding',
        'partials/pagination-control.phtml');

?>
<br>
<h1><a href='' style='text-decoration: none'>New Product</a></h1>
